﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace ExpertApplication.DatabaseModel
{
    public class Question
    {
        public int Id { get; set; }
        public string Text { get; set; }
        public float Weight { get; set; }
        public QuestionLevel Level { get; set; }
        public bool IsMultiSelected { get; set; }

        public ICollection<Answer> Answers { get; set; }
        public ICollection<QuestionGroup> QuestionGroups { get; set; }
    }
    public class Answer
    {
        public int Id { get; set; }
        public string Text { get; set; }
        public float Weight { get; set; }
        public Question Question { get; set; }
    }
    public class QuestionGroup
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public ICollection<Question> Questions { get; set; }
    }
    public class QuestionLevel
    {
        public int Id { get; set; }
        public int Level { get; set; }
    }
    public class User
    {
        [Key]
        public string Uid { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Photo { get; set; }
        public string PhotoRec { get; set; }
        [Required]
        public string Hash { get; set; }
        public bool IsLogged { get; set; }
    }
}